<?
session_start();
$manager = new Manager('teste');

if ($_SESSION['username'] == null) {
	$_GET['username'] = 'taviroquai';
	if ($mapa = $manager->readObj('mapa1', 'mapas')) {
		//$areaActual = $mapa->getAreaActual();
	} else {
	
	}
	if ($conta = $manager->readObj($_GET['username'], 'contas')) {
		$pers = $conta->getActualPers();
	} else {
	
	}
	
	$_SESSION['username'] = $_GET['username'];
} else {
	$mapa = $manager->readObj('mapa1', 'mapas');
	$conta = $manager->readObj($_SESSION['username'], 'contas');
	$pers = $conta->getActualPers();
}
?>